package javaCode.chapter15.tankgame;

import javax.swing.*;

/**
 * @author 徐州城
 * @version 1.0
 */
public class XzcTankGame01 extends JFrame {

    //定义MyPanel
    MyPanel mp = null;

    public static void main(String[] args) {

        XzcTankGame01 xzc = new XzcTankGame01();

    }

    public XzcTankGame01(){
        mp = new MyPanel();
        this.add(mp);//把面板(游戏的绘图区域)
        this.setSize(1000,750);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
